package com.mutual.assistance.task.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author chenyuxin
 * @version 1.0
 * @description 完成任务请求表
 * @date 2023/5/4 11:58
 */
@ApiModel("完成任务请求表")
@Data
public class FinishQuestTaskVO implements Serializable {

    @ApiModelProperty("任务id")
    @NotBlank(message = "任务id不能为空")
    private String taskId;

    @ApiModelProperty("任务接收的用户姓名")
    @NotBlank(message = "任务接受者姓名不能为空")
    private String recipient;

    @ApiModelProperty("发布者评论")
    @NotBlank(message = "用户评价不能为空")
    private String publisherAppraise;

    @ApiModelProperty("任务完成星级")
    @Range(max = 5, min = 1)
    private Integer star;
}
